#ifndef Tui_TWin_h
#define Tui_TWin_h

#include "TBase.h"

USING_NS_CC;

class TWin : public  TPanel
{
public:
    virtual ~TWin();
    TWin();
    
    CREATE_FUNC(TWin);
    
    
    virtual bool init(void);
     
    virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
    
    virtual void ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent);
    
    virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
    
    virtual void onShow(); 
    
    virtual void onClose();
    
    virtual void onRefresh(){}
    
	int getWinID() { return m_nWinID; }
    
	void setWinID(int nID) { m_nWinID = nID; }
    
    
    virtual void procTuiEvent(const string&,TPanelItem*);
     
protected: 
    
	int m_nWinID;
     
};
#endif
